On the border between functional programming and program synthesis
نویسنده
چکیده
The importance of compositionality in program construction is being accepted quite well. With this respect, the relational programming has clear advantages over the functional programming. Unfortunately, there is no general technique of relational programming efficient enough to compete with the existing functional programming techniques. Here we discuss structural synthesis of programs a method of synthesis of functional programs explainable in terms of higher-order functional constraint nets, simple types or intuitionistic logic. This method has been used in implementation of declarative languages that allow us to specify concepts as relations and use them in specifications more flexibly than functions. 1. About the SSP Structural synthesis of programs (SSP) has been known for quite a number of years and has been used at least in two commercial systems: XpertPriz and PRIZ (4). During the years, SSP has been applied and extended in several ways. Here we summarize the recent extensions, and refer to (7) for some earlier extensions. SSP is a deductive program synthesis method based on the idea that we can construct programs taking into account only their structural properties. We use this idea for constructing programs from small as well as large modules whose behavior we don ́t describe in detail. Each preprogrammed module is supplied with a specification used as an axiom telling under which conditions it can be applied and which values it computes. However, the specification doesn ́t specify the relation between the input and output values. Instead of the general form of a program module specification .(P(x) -> .R(x,y)) with precondition P and postcondition R we use .(P(x) -> .R(y)) which tells us that a correct value (satisfying R) can be computed, but doesn ́t show the relation between this value and the input. The latter formula has the following equivalent form .P(x) -> .R(y). As a consequence, we can present axioms in a propositional language, considering the closed formulae .P(x) and .R(y) as propositions whose internal structure is inessential. This allows us to use logic in which we are able to handle theories (specifications for the synthesis of programs) with large amount (up to tens of thousands) of axioms. x ∀ y ∃ x ∀ y ∃
منابع مشابه
Estimation of Concentrations in Chemical Systems at Equilibrium Using Geometric Programming
Geometric programming is a mathematical technique, which has been developed for nonlinear optimization problems. This technique is based on the dual program with linear constraints. Determination of species concentrations in chemical equilibrium conditions is one of its applications in chemistry and chemical engineering fields. In this paper, the principles of geometric programming and its comp...
متن کاملFunctional Training Program Effect on Static and Dynamic Balance in Male Able-bodied Elderly
Objectives: Balance is an index to determine the level of independency of elderly (65 years and older) in their daily activities. The purpose of this study was to examine the effect of a functional training program on static and dynamic balance of elderly male able-bodied subjects. Methods & Materials: Thirty elderly male subjects (age:70.83±3 y, weight:70.60±2.44 kg, height:1.78±2.28 m) par...
متن کاملEffects of Functional Movement Training Program on Functional Movement Screening Scores and Selected Physical Fitness Factors in Active Injury-Prone Military Men
Background and Aim: Functional Movement Screening (FMS) which plays an important role in predicting sports injuries, has been recommended by many sports experts in designing exercise programs. The present study aimed to evaluate the effects of functional movement training program on functional movement screening scores and selected physical fitness factors in active military men. Methods: Thirt...
متن کاملThe Effect of Water Exercise Program on Static and Dynamic Balance in Elderly Women
Objectives: Poor balance is one of risk factors of falling, a cause of injury and even death in elderly. The aim of this study was to evaluate the effect of a water exercise program on static and dynamic balance in elder women. Methods & Materials: Thirty participants aged 55-70 years completed an exercise program (60 min, 3 days and 6 weeks), in 2 groups, exercise and control, voluntarily. ...
متن کاملComputational and Programming Aspects of Transition Elements in a Three-dimensional Finite Element Program
The performance of any finite element (FE) structural analysis is directly related to the global number of nodes and degrees of freedom (DOF) of the discretized structure and mesh distribution attributes. It is obvious that the appropriate numerical analysis needs finer elements in the zone of interest, e.g. zone of high stress concentration and intensity, and coarser elements for farther porti...
متن کامل